package com.landiao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.landiao.entities.Coupon;

public interface CouponMapper extends BaseMapper<Coupon,String>{
    int deleteByPrimaryKey(String couponId);

    int insert(Coupon record);

    int insertSelective(Coupon record);

    Coupon selectByPrimaryKey(String couponId);

    int updateByPrimaryKeySelective(Coupon record);

    int updateByPrimaryKey(Coupon record);

	void updateStateById(String couponId);
	
	List<Coupon> selectValidCoupon(@Param("vipId")String vipId,@Param("shopId")String shopId,@Param("list")List<String> list);
}